@echo off
rem author shihui
echo "start : %time%"
set h=%time:~0,2%
set m=%time:~3,2%
set s=%time:~6,2%

call :delay 60


:delay
set /a ss=%s%+%1
set /a c=60
set /a diff=%ss%/%c%
set /a mm=%m%+%diff%
set /a cdiff=%c%*%diff%
set /a sss=%ss%-%cdiff%
if %diff% GEQ 1 (
    if %time:~3,2% GEQ %mm% (
		if %time:~6,2% LSS %sss% goto :delay
	) else (
		goto :delay
	)
) else (
	if %time:~6,2% LSS %ss% goto :delay
)

echo "end   : %time%"
goto :eof

echo. & pause